<?php
$currency = new Zend_Currency('vi_VN');
$startPrice = $this->common()->trimCurrency($currency->toCurrency($this->item->getStartPrice(), array('symbol' => '')));
$buynowPrice = $this->common()->trimCurrency($currency->toCurrency($this->item->getBuynowPrice(), array('symbol' => '')));
$rangeAmount = $this->common()->trimCurrency($currency->toCurrency($this->item->getBidRangeAmount(), array('symbol' => '')));
$galleries = json_decode($this->item->getGalleries());
?>
<div class="mainItemContent">
	<div class="breadcrumb"><a href="javascript:;">Trang chủ</a> / Điện Thoại</div>
	<div class="itemDetailPage">
		<h3><?php echo $this->item->getTitle(); ?></h3>
		<h4><strong>Tình trạng</strong>: <?php echo ($this->item->getItemStatus() == 1) ? $this->translate('BID_ITEM_STATUS_NEW') : $this->translate('BID_ITEM_STATUS_OLD'); ?></h4>
		<div class="itemDetailBid">Giá khởi điểm:
			<h5><?php echo $startPrice ?><span class="itemCurrency">đ</span></h5>
			<img src="<?php echo $this->themePath; ?>/img/ico_reserve_non.gif" width="20" height="20" alt="" title="Giá cố định"/>Giá cố định | <strong>Kết thúc vào: </strong><?php echo date($this->translate('BID_DATE_FORMAT'), strtotime($this->item->getEndDate())); ?>, <strong><?php echo date($this->translate('BID_HOUR_FORMAT'), strtotime($this->item->getEndDate())); ?></strong></div>
		<form action="" id="frmDauGia">
			<label for="frmBid">Bắt đầu Bid với  giá</label>
			(đ)
			<input name="frmBid" type="text" class="input" id="frmBid" value="<?php echo $rangeAmount; ?>" />
			<input name="frmBidNow" type="submit" class="input8" id="frmBidNow" value="Bid" />
			<strong>Mua ngay: <?php echo $buynowPrice; ?><span class="itemCurrency">đ</span></strong>
			<input name="frmBidNow2" type="submit" class="input8" id="frmBidNow2" value="Mua" />
		</form>
		<div class="itemDetailDesc">
			<?php echo $this->item->getDescription(); ?>
			<?php
			if(count($galleries)) {
			    foreach($galleries as $photo) {
                ?><p><img src="<?php echo $this->baseUrl() . '/uploads/images/bid/galleries/' . $photo; ?>" width="660" alt="<?php echo $this->item->getTitle(); ?>" /></p><?php
                }
			}?>
			<div class="itemShare">
				<p><a href="javascript:;" class="input8">Đặt theo dõi</a><strong>Chia sẻ qua</strong><a href="javascript:;"><img src="<?php echo $this->themePath; ?>/img/ico_facebook.gif" width="41" height="41" alt="" /><img src="<?php echo $this->themePath; ?>/img/ico_google.gif" width="41" height="41" alt="" /></a></p>
			</div>
			<div class="itemSellerBox">
				<div class="itemSellerRating">150 <img src="<?php echo $this->themePath; ?>/img/ico_star.png" width="42" height="41" alt="" /></div>
				<h4>Thông tin về Người Bán: <a href="javascript:;"><strong>h.w.m.i.m</strong></a> </h4>
				<p><strong>99.7%</strong> được nhận xét Tích cực </p>
				<p> (Thành viên từ  10/2013)</p>
				<p> <a href="javascript:;">Xem nhận xét từ các Bidbizer khác</a></p>
			</div>
		</div>
	</div>
</div>